package com.study.gupao.adapter;

/**
 * @ClassName: UserService
 * @Description:
 * @author: Administrator
 * @Date: 2019-03-18 11:30
 */
public class UserService {

    /**
     * 用户注册
     * @param userName
     * @param password
     * @return
     */
    public ResultBean regist(String userName,String password){
        ResultBean bean = new ResultBean(String.format("用户名：%s注册成功",userName),200,new User());
        return bean;
    }

    /**
     * 登录
     * @param username
     * @param password
     * @return
     */
    public ResultBean login(String username,String password){
        ResultBean bean = new ResultBean(String.format("用户名：%s登录成功",username),200,new User());
        System.out.println(bean);
        return bean;
    }

}
